package com.ltmonitor.jt808.protocol;

/**
 * 信号量附加协议
 */
public class PostitionAdditional_Signal implements IPositionAdditionalItem {

	public final int getAdditionalId() {
		return 0x25;
	}

	public final byte getAdditionalLength() {
		return 0x25;
	}

	/**
	 * 信息量
	 */
	private int signal;

	public final byte[] WriteToBytes() {
		return BitConverter.GetBytes(signal);
	}

	public final void ReadFromBytes(byte[] bytes) {
		signal = (BitConverter.ToUInt32(bytes, 0));
	}

	public int getSignal() {
		return signal;
	}

	public void setSignal(int signal) {
		this.signal = signal;
	}
}